package estagio.visao;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;
import javax.swing.JPasswordField;
import javax.swing.JTextField;
import javax.swing.JLabel;
import java.awt.Font;
import java.awt.Color;
import javax.swing.UIManager;
import java.awt.SystemColor;
import javax.swing.JMenuBar;
import javax.swing.ImageIcon;
import org.eclipse.wb.swing.FocusTraversalOnArray;
import java.awt.Component;
import javax.swing.JInternalFrame;
import javax.swing.SwingConstants;

@SuppressWarnings({ "unused", "serial" })
public class TelaLogin extends JFrame {

	private JPanel contentPane;
	private JPasswordField passwordField;
	private JTextField textField;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					TelaLogin frame = new TelaLogin();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public TelaLogin() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 600, 500);
		contentPane = new JPanel();
		contentPane.setBorder(null);
		setContentPane(contentPane);
		contentPane.setLayout(null);

		passwordField = new JPasswordField();
		passwordField.setBounds(286, 275, 237, 39);
		contentPane.add(passwordField);

		textField = new JTextField();
		textField.setBounds(286, 207, 237, 39);
		contentPane.add(textField);
		textField.setColumns(10);

		JLabel lblId = new JLabel("ID:");
		lblId.setForeground(UIManager.getColor("Button.shadow"));
		lblId.setFont(new Font("Cambria", Font.PLAIN, 20));
		lblId.setBounds(252, 211, 24, 24);
		contentPane.add(lblId);

		JLabel lblSenha = new JLabel("SENHA:");
		lblSenha.setForeground(UIManager.getColor("Button.shadow"));
		lblSenha.setFont(new Font("Cambria", Font.PLAIN, 20));
		lblSenha.setBounds(209, 279, 67, 24);
		contentPane.add(lblSenha);

		JButton button = new JButton("Entrar");
		button.setForeground(SystemColor.controlShadow);
		button.setFont(new Font("Cambria", Font.PLAIN, 20));
		button.setBounds(341, 347, 141, 39);
		contentPane.add(button);

		JLabel lblControleDeEstgio = new JLabel("Controle de Est\u00E1gio");
		lblControleDeEstgio.setForeground(UIManager.getColor("Button.shadow"));
		lblControleDeEstgio.setFont(new Font("Cambria", Font.PLAIN, 35));
		lblControleDeEstgio.setBounds(141, 39, 293, 42);
		contentPane.add(lblControleDeEstgio);
		
		JLabel lblNewLabel = new JLabel("");
		lblNewLabel.setLabelFor(this);
		lblNewLabel.setHorizontalAlignment(SwingConstants.LEFT);
		lblNewLabel.setIcon(new ImageIcon("C:\\Users\\user\\workspace\\Estagio\\imgs\\estagio.png"));
		lblNewLabel.setBounds(35, 186, 141, 128);
		contentPane.add(lblNewLabel);
		contentPane.setFocusTraversalPolicy(new FocusTraversalOnArray(new Component[]{passwordField, textField, lblId, lblSenha, button, lblControleDeEstgio}));
	}
}
